﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Monopoly;
      
namespace Monopoly_AcceptanceTest
{
    [TestClass]
    public class TestPlayGameUseCase
    {
        private MGame _Game;

        [TestInitialize()]
        public void SetUp()
        {
            _Game = new MGame();
        }

        [TestMethod]
        public void PlayGame_Typical()
        {
            _Game.RoundTotal = 10;
            _Game.PlayerNumber = 8;

            _Game.NewGame();
            _Game.Play();

            Assert.AreEqual(_Game.RoundTotal, _Game.CurrentRoundNumber);
            _Game.Players.ForEach(p => Assert.AreSame(_Game.Board.GoSquare, p.Location));
        }
    }
}
